package me.zhengjie.inter.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.business.domain.Order;
import me.zhengjie.business.domain.vo.Kc08Vo;
import me.zhengjie.business.domain.vo.PersonFeeVo;
import me.zhengjie.business.service.HljgService;
import me.zhengjie.business.service.dto.OrderQueryCriteria;
import me.zhengjie.inter.service.MpJfFcService;
import me.zhengjie.utils.PageUtil;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author lyl
 * @since 2023/11/20
 */
@RestController
@RequiredArgsConstructor
@Api(tags = "移动端缴费封存信息")
@RequestMapping("/mp/jfFcXx")
public class MpJfFcController {

    private final MpJfFcService mpJfFcService;

    @GetMapping(value = "/getPersonNoFee")
    @ApiOperation("人员缴费信息")
    public ResponseEntity<Object> getPersonNoFee(OrderQueryCriteria criteria) {
        Map<String, Object> map = mpJfFcService.getPersonNoFee(criteria);
        return new ResponseEntity<>(PageUtil.toMpContent(map), HttpStatus.OK);
    }

    @GetMapping(value = "/getPersonNoFc")
    @ApiOperation("人员封存信息")
    public ResponseEntity<Object> getPersonNoFc(OrderQueryCriteria criteria) {
        Map<String, Object> map = mpJfFcService.getPersonNoFc(criteria);
        return new ResponseEntity<>(PageUtil.toMpContent(map), HttpStatus.OK);
    }

}
